package com.yonyou.train.dao;

import com.yonyou.train.model.Auth;
import com.yonyou.train.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AuthDao {
    Auth findById(long id);
    List<Map> queryAuth();
    void  updateAuth( @Param("id") long id,@Param("ispublish") int ispublish,
                      @Param("issignup") int issignup,@Param("isreport") int isreport);
    void updateUser(@Param("id") long id,@Param("workstatus")String workstatus,@Param("filed")String filed);
    void batchDelete();
    void insertAuthOne(@Param("auth") Auth auth);
    Auth queryUserAuth(String usrid);
    int  updateAuthById( @Param("auth")Auth auth);
}
